package org.vincen.helloworld.dynamicproxy;

public class Client {
	public static void main(String[] args) {
		ProxySubject ps = new ProxySubject();
		Subject s = (Subject)ps.getProxyInstance(new RealSubject());
		s.request2();
		//观察生成的代理类名，可以知道，动态生成了一个代理类
		System.out.println(s.getClass().getName());
	}
}
